package yz.cp.back.s.service;

import com.baomidou.mybatisplus.extension.service.IService;
import yz.cp.back.s.entity.SysRoleDepartment;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2019-04-03
 */
public interface ISysRoleDepartmentService extends IService<SysRoleDepartment> {

    /**
     * 通过roleId获取
     * @param roleId
     * @return
     */
    List<SysRoleDepartment> findByRoleId(String roleId);

    /**
     * 通过角色id删除
     * @param roleId
     */
    void deleteByRoleId(String roleId);

    /**
     * 通过角色id删除
     * @param departmentId
     */
    void deleteByDepartmentId(String departmentId);
}
